package com.quartz.demo4;

import org.quartz.SchedulerException;

import static com.quartz.demo4.QuartzManager.addJob;
import static com.quartz.demo4.QuartzManager.startJobs;

public class CronDemo4 {
	public static void main(String[] args) throws SchedulerException {

		startJobs();

		String[] str = new String[]{"chen","huang","liu"};
		String cron ="0/3 * * * * ? *";
		addJob("myCronJob","group2","myTrigger","myTriggerGroup",MyJob4.class,cron,str);

		String[] str2 = new String[]{"chen3","huang3","liu3"};
		String cron2 ="0/6 * * * * ? *";
		addJob("myCronJob2","group2","myTrigger","myTriggerGroup2",MyJob4.class,cron2,str2);

	}
}
